package com.qunji.cpsdistribution.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sjq
 * @since 2020-07-23
 */
public class Unsubscribe extends Model<Unsubscribe> {

    private static final long serialVersionUID = 1L;

    /**
     * 注销_id
     */
    @TableId(value = "unsubscribe_id", type = IdType.AUTO)
    private Long unsubscribeId;
    /**
     * 注销内容
     */
    private String unsubscribeContent;
    /**
     * 是否注销（0/1）1表示被注销
     */
    private Integer cancellation;
    /**
     * 创建时间
     */
    private Date createTime;


    public Long getUnsubscribeId() {
        return unsubscribeId;
    }

    public void setUnsubscribeId(Long unsubscribeId) {
        this.unsubscribeId = unsubscribeId;
    }

    public String getUnsubscribeContent() {
        return unsubscribeContent;
    }

    public void setUnsubscribeContent(String unsubscribeContent) {
        this.unsubscribeContent = unsubscribeContent;
    }

    public Integer getCancellation() {
        return cancellation;
    }

    public void setCancellation(Integer cancellation) {
        this.cancellation = cancellation;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.unsubscribeId;
    }

    @Override
    public String toString() {
        return "Unsubscribe{" +
        ", unsubscribeId=" + unsubscribeId +
        ", unsubscribeContent=" + unsubscribeContent +
        ", cancellation=" + cancellation +
        ", createTime=" + createTime +
        "}";
    }
}
